#!/usr/bin/env bash

user="root"
pwd="root"
mycmd="mysql -h127.0.0.1 -P3306  -u$user -p$pwd -S /tmp/mysql.sock1"

$mycmd -e "CREATE TABLE dcos.base_conf (
  id int NOT NULL AUTO_INCREMENT,
  env varchar(20) NOT NULL COMMENT '环境 dev pro',
  config text NOT NULL COMMENT '配置信息',
  PRIMARY KEY (id)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='配置文件信息';"